﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IssueQuery.aspx.cs" Inherits="ASB.CC.Web.ACR.Queries.IssueQuery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ register src="../../UserControls/Pager2.ascx" tagname="Pager" tagprefix="cc" %>
<head runat="server">
    <title></title>
    <link href="../../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../../css/content/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="../../css/content/entity.css" rel="stylesheet" type="text/css" />

    <script src="../../js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script src="../../js/jquery-ui.min.js" type="text/javascript"></script>

    <script src="../../js/entity.js.aspx" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="mainbox">
        <div class="sitemapbox">
            <div class="sitemap">
                &nbsp;&raquo;&nbsp;Search&nbsp;&raquo;&nbsp;Customer Search
            </div>
        </div>
        <table cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    <!--tab区域-->
                    <div class="tabbox purplebg_dark">
                        <ul class="tabpos">
                            <li><span class="tab_active">
                                <%=Resources.PageTitles.CustomerQuickSearch%></span></li>
                            <li><span class="tab_link"><a href="QueryDetail.aspx" clas="tab_link">
                                <%=Resources.PageTitles.CustomerAdvancedSearch%></a></span></li>
                        </ul>
                    </div>
                    <div class="formbox5">
                        <span class="float_lft width140">Customer ID (客户编号): </span><span class="float_lft padding_lft20">
                            <asp:TextBox ID="txtID" runat="server" CssClass="txtbox width140" onmouseover="this.className='txtboxover width140';"
                                onMouseOut="this.className='txtbox width140';"></asp:TextBox>
                        </span><span class="float_lft padding_lft20 width140">Name (客户名称): </span><span class="float_lft padding_lft20">
                            <asp:TextBox ID="txtName" runat="server" CssClass="txtbox width140" onmouseover="this.className='txtboxover width140';"
                                onMouseOut="this.className='txtbox width140';"></asp:TextBox>
                        </span>
                    </div>
                    <div class="formbox5">
                        <span class="float_lft width140">ACR Number (ACR 号码): </span><span class="float_lft padding_lft20">
                            <asp:TextBox ID="txtACR" runat="server" CssClass="txtbox width140" onmouseover="this.className='txtboxover width140';"
                                onMouseOut="this.className='txtbox width140';"></asp:TextBox>
                        </span><span class="float_lft padding_lft20 width140">Create By (创建人): </span><span
                            class="float_lft padding_lft20">
                            <asp:TextBox ID="txtCreateBy" runat="server" CssClass="txtbox width140" onmouseover="this.className='txtboxover width140';"
                                onMouseOut="this.className='txtbox width140';"></asp:TextBox>
                        </span>
                    </div>
                    <div class="formbox5">
                        <span class="float_lft width140">Category (客户类别): </span><span class="float_lft padding_lft20">
                            <asp:DropDownList ID="dlCategory" runat="server" CssClass="width146 formfont">
                            </asp:DropDownList>
                        </span>
                    </div>
                    <div class="formbox">
                        <span class=" float_lft">
                            <asp:ResourceButton ID="btnAdd" runat="server" Text="Search" ToolTip="SearchTips"
                                OnClick="btnAdd_Click" CssClass="btn" />
                            <asp:ResourceButton ID="btnClear" runat="server" Text="Clear" ToolTip="ClearTips"
                                CssClass="btn" OnClick="btnClear_Click" />
                            <asp:ResourceButton ID="btnExport" runat="server" Text="Export" ToolTip="ExportTips"
                                CssClass="btn" OnClick="btnExport_Click" />
                        </span>
                    </div>
                </td>
            </tr>
        </table>
        <asp:GridView ID="GVCustomer" runat="server" CssClass="tablestyle" AllowPaging="True"
            AllowSorting="True" EmptyDataText="There is no data to display!" AutoGenerateColumns="False"
            DataSourceID="edsExport" DataKeyNames="IssueId,IssueTitle,NameEN,Phone,Address,Zip,CategoryName,DisplayName,ACRNo,DateCreated">
            <RowStyle CssClass="tbody" />
            <HeaderStyle CssClass="thead" ForeColor="#ffffff" />
            <Columns>
                <asp:BoundField DataField="IssueId" HeaderText="Id<br/>客户编号" ReadOnly="True" SortExpression="IssueId"
                    HtmlEncode="false" />
                <asp:TemplateField HeaderText="Name<br/>客户名称" SortExpression="IssueTitle">
                    <ItemTemplate>
                        <a href="../Issues/IssueDetail.aspx?id=<%#Eval("IssueId") %>">
                            <asp:Label ID="Category" runat="server" Text='<%#Eval("IssueTitle") %>'></asp:Label></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="CategoryName" HeaderText="Category<br/>分类" ReadOnly="True"
                    SortExpression="CategoryName" HtmlEncode="false" />
                <asp:BoundField DataField="ACRNo" HeaderText="ACR Code<br/>ACR编号" ReadOnly="True"
                    SortExpression="ACRNo" HtmlEncode="false" />
                <asp:BoundField DataField="DisplayName" HeaderText="IssueCreator<br/>创建人" ReadOnly="True"
                    SortExpression="DisplayName" HtmlEncode="false" />
                <asp:BoundField DataField="DateCreated" HeaderText="Create Date<br/>创建日期" ReadOnly="True"
                    SortExpression="DateCreated" HtmlEncode="false" />
            </Columns>
            <PagerTemplate>
                <cc:Pager runat="server" />
            </PagerTemplate>
        </asp:GridView>
        <%-- <PagerTemplate>
            <cc:Pager runat="server" />
        </PagerTemplate>--%>
        <asp:GridView ID="GVExport" runat="server" AutoGenerateColumns="False" DataKeyNames="IssueId,IssueTitle,NameEN,Phone,Address,Zip,CategoryName,DisplayName,ACRNo,DateCreated"
            DataSourceID="edsExport" Visible="False">
            <Columns>
                <asp:BoundField DataField="IssueId" HeaderText="Id<br/>客户编号" ReadOnly="True" SortExpression="IssueId"
                    HtmlEncode="false" />
                <asp:BoundField DataField="IssueTitle" HeaderText="Name<br/>客户名称" ReadOnly="True"
                    SortExpression="IssueTitle" HtmlEncode="false" />
                <asp:BoundField DataField="NameEN" HeaderText="English Name<br/>英文名称" ReadOnly="True"
                    SortExpression="NameEN" HtmlEncode="false" />
                <asp:BoundField DataField="ACRNo" HeaderText="ACR Code<br/>ACR编号" ReadOnly="True"
                    SortExpression="ACRNo" HtmlEncode="false" />
                <asp:BoundField DataField="Phone" HeaderText="Phone<br/>电话号码" ReadOnly="True" SortExpression="Phone"
                    HtmlEncode="false" />
                <asp:BoundField DataField="Address" HeaderText="Address<br/>地址" ReadOnly="True" SortExpression="Address"
                    HtmlEncode="false" />
                <asp:BoundField DataField="Zip" HeaderText="Zip<br/>邮编" ReadOnly="True" SortExpression="Zip"
                    HtmlEncode="false" />
                <asp:BoundField DataField="CategoryName" HeaderText="Category<br/>分类" ReadOnly="True"
                    SortExpression="CategoryName" HtmlEncode="false" />
                <asp:BoundField DataField="DisplayName" HeaderText="IssueCreator<br/>创建人" ReadOnly="True"
                    SortExpression="DisplayName" HtmlEncode="false" />
                <asp:BoundField DataField="DateCreated" HeaderText="Create Date<br/>创建日期" ReadOnly="True"
                    SortExpression="DateCreated" HtmlEncode="false" />
            </Columns>
        </asp:GridView>
        <asp:EntityDataSource ID="edsCustomer" runat="server" ConnectionString="name=CCEntities"
            DefaultContainerName="CCEntities" EntitySetName="IssueTracker_Issues">
        </asp:EntityDataSource>
        <asp:EntityDataSource ID="edsExport" runat="server" ConnectionString="name=CCEntities"
            DefaultContainerName="CCEntities" EntitySetName="ACIS_Issue_Export">
        </asp:EntityDataSource>
        <%--数据源--%>
        <br />
    </div>
    </form>
</body>
</html>
